package org.linlinjava.litemall.db.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wj
 * @date 2021/9/23 17:58
 */
@Component
@ConfigurationProperties("litemall.server.address")
public class ServerAddress {

    /**
     *  admin服务地址
     */
    private String admin;

    /**
     *  中间服务基础路径
     */
    private String center;

    /**
     * corp_chat 企业微信服务基础路径
     */
    private String corp;


    /**
     * 网页显示动态拼接使用
     * @return
     */
    private String adminHtml;

    public String getAdminHtml() {
        return adminHtml;
    }

    public void setAdminHtml(String adminHtml) {
        this.adminHtml = adminHtml;
    }

    public String getAdmin() {
        return admin;
    }

    public void setAdmin(String admin) {
        this.admin = admin;
    }

    public String getCenter() {
        return center;
    }

    public void setCenter(String center) {
        this.center = center;
    }

    public String getCorp() {
        return corp;
    }

    public void setCorp(String corp) {
        this.corp = corp;
    }

    public ServerAddress(String admin, String center, String corp) {
        this.admin = admin;
        this.center = center;
        this.corp = corp;
    }

    public ServerAddress() {
    }
}
